home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.spb.su!demos!pluscom!usenet
- From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
- Subject: Re: Help creating 32-bit .DLL
- X-Newsreader: Forte Free Agent 1.0.82
- Sender: usenet@news.rinet.ru (Vladimir Sharpai)
- Nntp-Posting-Host: albea.ugatu.ac.ru
- Organization: Albea
- Message-ID: <Do9n3E.5Lt@news.rinet.ru>
- References: <314594F3.DCC@mcimail.com>
- Date: Thu, 14 Mar 1996 16:30:39 GMT
-
- "Michael P. Lascuola" <mlascuola@mcimail.com> wrote:
-
- >Has anyone created a .DLL for Visual FoxPro 3.0? I've been having a
- >devil of a time. I have created the .CPP program and created the .DLL
- >using Borland 4.52, but Fox says "Cannot find entry point <function> in
- >the DLL."
-
- >Does anyone have any suggestions? THANKS!
-
- > char* FAR PASCAL _export UseXLT(char * str);
-
- > char* FAR PASCAL _export UseXLT(char * str)
- > {
- > char *tempbuf;
- > tempbuf = new char[256];
- > sprintf(tempbuf, "%sNewValue", str);
- > return (char *)tempbuf;
- > }
- You need declare exported function as extern "C" and declare it in
- section EXPORT of DEF-file.
-
-